//
//  EJSHomeCategoryHeaderReusableView.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/12/20.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import "EJSHomeCategoryHeaderReusableView.h"

@implementation EJSHomeCategoryHeaderReusableView

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        [self addOwnViews];
    }
    return self;
}


- (void)layoutSubviews{
    [super layoutSubviews];
    [self.titleLabel sizeToFit];
    self.titleLabel.top = 30;
    self.titleLabel.left = self.width/2 - self.titleLabel.width/2;
    self.titleLabel.height = 20;
}
- (void)addOwnViews
{
    UILabel *label = [[UILabel alloc] init];
    label.text = @"= 当季新品 =";
    label.font = [UIFont fontWithName:@"PingFangSC-Medium" size:14];
    label.textColor = UIColorFromRGB(0x3C4151);
    label.textAlignment = NSTextAlignmentCenter;
    [self addSubview:label];
    self.titleLabel = label;
}
@end
